#ifndef PLUGIN_OUTLINE_H
#define PLUGIN_OUTLINE_H

#include <QWidget>
#include <QStandardItemModel>

namespace Ui {
class PluginOutline;
}

class PluginOutline : public QWidget
{
    Q_OBJECT

public:
    explicit PluginOutline(QWidget *parent = nullptr, const QString& plgPath = "");
    ~PluginOutline();

    void set_outline_item(const char * p_name, int32_t start_pos);
    void reflash_outline();

private slots:
    void on_outlineTreeView_clicked(const QModelIndex &index);

private:
    Ui::PluginOutline *ui;

    QStandardItemModel* m_model;
    QString m_plgPath;

    void load_dll(void);

};

#endif // PLUGIN_OUTLINE_H
